package com.ssy.lingxi.platform.manage.api.feign.paas;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.manage.api.hystrix.paas.CountryAreaPAASControllerFeignFallback;
import com.ssy.lingxi.platform.manage.api.model.dto.countryarea.CountryAreaPAASDTO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @menu 国家 - （系统初始化）PAAS接口
 * @author fhj
 * @version 2.0.0
 * @date 2020/09/25
 */
@FeignClient(value = "platform-manage-service", fallback = CountryAreaPAASControllerFeignFallback.class)
public interface CountryAreaPAASControllerFeign {

    @ApiOperation(value = "新增")
    @PostMapping(value = "/manage/paas/countryAreaPAAS/add")
    Wrapper<?> add(@RequestBody CountryAreaPAASDTO dto);

    @ApiOperation(value = "修改")
    @PostMapping(value = "/manage/paas/countryAreaPAAS/update")
    Wrapper<?> update(@RequestBody CountryAreaPAASDTO dto);

    @ApiOperation(value = "删除")
    @PostMapping(value = "/manage/paas/countryAreaPAAS/delete")
    Wrapper<?> delete(@RequestBody CountryAreaPAASDTO dto);

    @ApiOperation(value = "停用/启用")
    @PostMapping(value = "/manage/paas/countryAreaPAAS/enable")
    Wrapper<?> enable(@RequestBody CountryAreaPAASDTO dto);
}
